from django.contrib import admin
from django_summernote.admin import SummernoteModelAdmin
from . models import Imgs
from django.contrib.admin.templatetags.admin_modify import *
from django.contrib.admin.templatetags.admin_modify import submit_row as original_submit_row


# @register.inclusion_tag('admin/submit_line.html', takes_context=True)
class PostAdmin(SummernoteModelAdmin, admin.ModelAdmin):
    summernote_fields = ('content',)
    # 给列表增加字段
    list_display = ('id', 'title', 'created_time')
    ordering = ('id',)


admin.site.register(Imgs, PostAdmin)

